package io.hx.modules.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.hx.common.utils.PageUtils;
import io.hx.common.utils.Query;

import io.hx.modules.patient.dao.ImagDao;
import io.hx.modules.patient.entity.ImagEntity;
import io.hx.modules.patient.service.ImagService;


@Service("imagService")
public class ImagServiceImpl extends ServiceImpl<ImagDao, ImagEntity> implements ImagService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ImagEntity> page = this.page(
                new Query<ImagEntity>().getPage(params),
                new QueryWrapper<ImagEntity>()
        );

        return new PageUtils(page);
    }

}
